package cn.edu.hpu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cn.edu.hpu.dao.DealtypeDao;
import cn.edu.hpu.pojo.Dealtype;


public class DealtypeService {
	private DealtypeDao dealtypeDao;
	
	public Dealtype findADealtype(String id){
		return dealtypeDao.get(id);
	}
	@Autowired
	public void setDealtypeDao(DealtypeDao dealtypeDao) {
		this.dealtypeDao = dealtypeDao;
	}

	public List<Dealtype> findAll() {
		return dealtypeDao.findAll();
	}
	public void delete(String id) {
		dealtypeDao.del(id);
	}
	public void update(Dealtype dt) {
		dealtypeDao.update(dt);
		
	}
	public void save(Dealtype dt) {
		dealtypeDao.save(dt);
		
	}

}
